

        <g:set var="entityName" value="${message(code: 'plan.label', default: 'Plan')}" />
            <div class="dialog">
                <table>
                    <tbody>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="plan.id.label" default="Id" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: planInstance, field: "id")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="plan.classes.label" default="Classes" /></td>
                            
                            <td valign="top" class="value"><g:link controller="classes" action="show" id="${planInstance?.classes?.id}">${planInstance?.classes?.encodeAsHTML()}</g:link></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="plan.week.label" default="Week" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: planInstance, field: "week")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="plan.teacher.label" default="Teacher" /></td>
                            
                            <td valign="top" class="value"><g:link controller="teacher" action="show" id="${planInstance?.teacher?.id}">${planInstance?.teacher?.encodeAsHTML()}</g:link></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="plan.course.label" default="Course" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: planInstance, field: "course")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="plan.restTime.label" default="Rest Time" /></td>
                            
                            <td valign="top" class="value"><g:link controller="restTime" action="show" id="${planInstance?.restTime?.id}">${planInstance?.restTime?.encodeAsHTML()}</g:link></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="plan.school.label" default="School" /></td>
                            
                            <td valign="top" class="value"><g:link controller="school" action="show" id="${planInstance?.school?.id}">${planInstance?.school?.encodeAsHTML()}</g:link></td>
                            
                        </tr>
                    
                    </tbody>
                </table>
            </div>
            <div class="buttons">
                <g:form>
                    <g:hiddenField name="id" value="${planInstance?.id}" />
                    <span class="button"><g:actionSubmit class="edit" action="edit" value="${message(code: 'default.button.edit.label', default: 'Edit')}" /></span>
                    <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span>
                </g:form>
            </div>
